<template>
  <div style="overflow-y:hidden;overflow-x: hidden">
    <router-view />
<!--    头部-->

  </div>

</template>

<style>

</style>
<script>


  export default {
    name:"App",

  }
  // app.vue写在script里面  main.js写在app挂在完之后
  const debounce = (fn, delay) => {
    let timer
    return (...args) => {
      if (timer) {
        clearTimeout(timer)
      }
      timer = setTimeout(() => {
        fn(...args)
      }, delay)
    }
  }

  const _ResizeObserver = window.ResizeObserver;
  window.ResizeObserver = class ResizeObserver extends _ResizeObserver{
    constructor(callback) {
      callback = debounce(callback, 200);
      super(callback);
    }
  }

</script>